package com.itheima.mapper;

import com.github.pagehelper.Page;
import com.itheima.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    List<User> findAll();

    void add( User user);

    void deleteById(@Param("id") Integer id);

    void updateUser(User user);

    Page<User> queryByPage(@Param("condition") String condition);
}
